<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateOrderquoteTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateOrderquoteLabel_orderquoteid}" for="orderquoteid" />
                    <h:inputText id="orderquoteid" value="#{orderquoteController.selected.orderquoteid}" title="#{bundle.CreateOrderquoteTitle_orderquoteid}" required="true" requiredMessage="#{bundle.CreateOrderquoteRequiredMessage_orderquoteid}"/>
                    <h:outputLabel value="#{bundle.CreateOrderquoteLabel_hasexistences}" for="hasexistences" />
                    <h:inputText id="hasexistences" value="#{orderquoteController.selected.hasexistences}" title="#{bundle.CreateOrderquoteTitle_hasexistences}" required="true" requiredMessage="#{bundle.CreateOrderquoteRequiredMessage_hasexistences}"/>
                    <h:outputLabel value="#{bundle.CreateOrderquoteLabel_quoteprice}" for="quoteprice" />
                    <h:inputText id="quoteprice" value="#{orderquoteController.selected.quoteprice}" title="#{bundle.CreateOrderquoteTitle_quoteprice}" required="true" requiredMessage="#{bundle.CreateOrderquoteRequiredMessage_quoteprice}"/>
                    <h:outputLabel value="#{bundle.CreateOrderquoteLabel_isselected}" for="isselected" />
                    <h:inputText id="isselected" value="#{orderquoteController.selected.isselected}" title="#{bundle.CreateOrderquoteTitle_isselected}" required="true" requiredMessage="#{bundle.CreateOrderquoteRequiredMessage_isselected}"/>
                    <h:outputLabel value="#{bundle.CreateOrderquoteLabel_supplierid}" for="supplierid" />
                    <h:selectOneMenu id="supplierid" value="#{orderquoteController.selected.supplierid}" title="#{bundle.CreateOrderquoteTitle_supplierid}" required="true" requiredMessage="#{bundle.CreateOrderquoteRequiredMessage_supplierid}">
                        <f:selectItems value="#{supplierController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.CreateOrderquoteLabel_orderid}" for="orderid" />
                    <h:selectOneMenu id="orderid" value="#{orderquoteController.selected.orderid}" title="#{bundle.CreateOrderquoteTitle_orderid}" required="true" requiredMessage="#{bundle.CreateOrderquoteRequiredMessage_orderid}">
                        <f:selectItems value="#{orderOmsController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{orderquoteController.create}" value="#{bundle.CreateOrderquoteSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{orderquoteController.prepareList}" value="#{bundle.CreateOrderquoteShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateOrderquoteIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
